import {
	HTTP
} from "../../utils/http.js";

class Points extends HTTP {
	//获取积分列表
	getPointsListAPI(data) {
		return this.request({
			url: "/wx/integral/list",
			data: data,
			method: "GET"
		});
	}
	// 获取积分规则
	getPointsRuleAPI(data) {
		return this.request({
			url: "/wx/integral/configGetOne",
			data: data,
		})
	}
	// 设置积分规则
	savePointsRuleAPI(data) {
		return this.request({
			url: "/wx/integral/configSaveAndUpdate",
			data: data,
		})
	}
	// 设置积分
	savePointsAPI(data) {
		return this.request({
			url: "/wx/integral/save",
			data: data,
		})
	}


}
export {
	Points
}